﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <!--自适应界面,如果出现,在某些设备出现界面偏小的话,检查一下有没有加入这句 -->
    <meta http-equiv="Content-type" name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no, width=device-width">
    <link rel="stylesheet" href="../../../js/jqmobile/jquery.mobile-1.4.5.min.css" />
    <link href="../../../js/layer_mobile/need/layer.css" rel="stylesheet" />
    <!--<script src="../js/jquery.js"></script>-->
    <script src="../../../js/jquery.min2.1.4.js"></script>
    <script src="../../../js/jqmobile/jquery.mobile-1.4.5.min.js"></script>
    <script src="../../../js/cordova-1.5.0.js"></script>
    <script src="../../../js/layer_mobile/layer.js"></script>
    <script src="../../../js/jshelp.js"></script>
    <script>
        //接受传参
        function getUrlParam(name) {
            var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
            var r = window.location.search.substr(1).match(reg);  //匹配目标参数
            if (r != null) return unescape(decodeURI(r[2])); return null; //返回参数值
        }
        var customerCode = getUrlParam('customerCode');
        var mobile = getUrlParam('mobile');
        function tz(lx) {
            if (lx == "主页") {
                location.href = "..\\main.html?mobile=" + mobile + "&customerCode=" + customerCode;
            }
            else if (lx == "申请") {
                location.href = "..\\TransferRequest\\sq_list.html?mobile=" + mobile + "&customerCode=" + customerCode;
            }
            else if (lx == "抢单") {
                location.href = "..\\TransferSnatch\\list.html?mobile=" + mobile + "&customerCode=" + customerCode;
            }
            else if (lx == "发货") {
                location.href = "..\\TransferDeliver\\list.html?mobile=" + mobile + "&customerCode=" + customerCode;
            }
            else if (lx == "配置") {
                location.href = "list.html?mobile=" + mobile + "&customerCode=" + customerCode;
            }
        }
        function ht() {
            location.href = "..\\..\\Transfer\\orderlist_qw.html?phones=" + mobile;
        }
        $.ajax({
            type: "post",
            async: true,
            url: 'ashx/list.ashx?type=get_myinfo&mobiles=' + mobile,
            data: {},
            dataType: "json",
            success: function (res) {
                debugger
                if (res.flag == "True") {
                    $("#jxsmc").text("经销商名称：" + res.remsg);
                    $("#jxsye").text("经销商余额：" + res.jxsye);
                }
                else {
                    layer.msg(res.remsg);
                }
            }
        })
    </script>
    <style>
        ul {
            list-style-type: none;
            padding: 0px;
            margin: 0px;
        }

            ul li {
                background-image: url(sqpurple.gif);
                background-repeat: no-repeat;
                background-position: 0px 5px;
                padding-left: 14px;
            }

        .tck {
            font: normal 12px auto "Trebuchet MS", Verdana, Arial, Helvetica, sans-serif;
            color: #4f6b72;
            background: #E6EAE9;
            padding: 20px;
        }
        /*按钮*/
        .btn {
            display: block;
            position: relative;
            background: #aaa;
            padding: 10px 20px 10px 20px;
            float: left;
            color: #fff;
            text-decoration: none;
            cursor: pointer;
            font-size: 13px;
            margin: 5px;
        }



        ul,
        li {
            list-style: none;
        }

        a {
            text-decoration: none;
        }

            a:hover {
                cursor: pointer;
                text-decoration: none;
            }

            a:link {
                text-decoration: none;
            }

        img {
            vertical-align: middle;
        }
       
        .ui-listview > p {
            white-space: normal;
        }
        /*店铺名称单号行*/
        div#findstorename.ui-grid-a .ui-block-a {
            width: 60%
        }

        div#findstorename.ui-grid-a .ui-block-b {
            width: 40%
        }
        /*联系人联系方式行*/
        div#findlxr.ui-grid-a .ui-block-a {
            width: 50%
        }

        div#findlxr.ui-grid-a .ui-block-b {
            width: 50%
        }
        /*发布数量调拨数量日期行*/
        div#findsl.ui-grid-a .ui-block-a {
            width: 30%
        }

        div#findsl.ui-grid-a .ui-block-b {
            width: 30%
        }

        div#findsl.ui-grid-a .ui-block-c {
            width: 40%
        }

        #controlgroupid .ui-controlgroup-controls {
            width: 100%;
        }

        #controlgroupid a {
            width: 25%;
            box-sizing: border-box;
        }

    </style>
</head>
<body>
    <div data-role="page" id="pageone">
        <div data-role="header" data-position="fixed">
            <h1>配置</h1>
            <!--<a href="#" class="ui-btn-left" data-rel="back">返回</a>-->
        </div>
        <div data-role="content" id="main3Content">
            <ul id="thelist" data-role="listview" data-split-icon="gear" data-split-theme="d"
                data-filter="true" data-inset="true" data-filter-placeholder="全局搜索">
                <li>
                    <h3 id="jxsmc"></h3>
                </li>
                <li>
                    <h3 id="jxsye" style="color:red;"></h3>
                </li>
                <li>
                    <a href="#" onclick="ht()" data-role="button" data-icon="gear">进入后台</a>
                </li>
            </ul>
        </div>
        <div data-role="footer" data-position="fixed">
            <div data-role="navbar">
                <ul id="navbarlist">
                    <li><a href="#" onclick="tz('主页')" data-role="button" data-icon="home" data-iconpos="top">首页</a></li>
                    <li><a href="#" onclick="tz('申请')" data-role="button" data-icon="plus" data-iconpos="top">调拨申请</a></li>
                    <li><a href="#" onclick="tz('抢单')" data-role="button" data-icon="shop" data-iconpos="top">调拨抢单</a></li>
                    <li><a href="#" onclick="tz('发货')" data-role="button" data-icon="navigation" data-iconpos="top">调拨发货</a></li>
                    <li><a href="#" onclick="tz('配置')" data-role="button" data-icon="gear" data-iconpos="top">设置</a></li>
                </ul>
            </div>
        </div>
    </div>
 

</body>
</html>
